package com.ruoyi.garbage.miniapp;


import com.ruoyi.common.core.domain.AjaxResult;
import com.ruoyi.garbage.domain.SlideShow;
import com.ruoyi.garbage.service.ISlideShowService;
import jakarta.annotation.Resource;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.List;

/**
 * <p>
 * 幻灯片播放表 前端控制器
 * </p>
 *
 * @author luoxiang
 * @since 2019-07-07
 */
@RestController
@RequestMapping("/miniApp")
public class SlideShowMiniAppController {

    @Resource
    ISlideShowService service;

    @GetMapping("/slideShow")
    public AjaxResult slideShow(SlideShow slideShow) {
        slideShow.setDisabled(SlideShow.ENABLED);
        List<SlideShow> list = service.selectSlideShowList(slideShow);
        return AjaxResult.success(list);
    }

}

